import request from '@/utils/request'

export function upload(query) {
  return request({
    url: '/istroke/upload',
    method: 'post',
    data: query
  })
}

export function getaskId(query) {
  return request({
    url: '/istroke/getaskid',
    method: 'get',
  })
}
export function getuserlist(query){
  return request({
    url: '/istroke/getuserlist',
    method: 'get',
    params: query
  })
}
export function queueload(query){
  return request({
    url: '/istroke/queueloader',
    method: 'get',
    params: query
  })
}
export function progressload(query){
  return request({
    url: '/istroke/progressloader',
    method: 'get',
    params: query
  })
}
export function batchDeleteSubject(query){
  return request({
    url: '/istroke/batchDelete',
    method: 'post',
    data: query
  })
}

export function Delete(query){
  return request({
    url: '/istroke/delete',
    method: 'post',
    data: query
  })
}
export function run(query){
  return request({
    url: '/istroke/run',
    method: 'post',
    data: query
  })
}
export function download(query){
  return request({
    url: '/istroke/download',
    method: 'get',
    params: query,
    responseType: 'blob',
  })
}
